package com.list01.example01;

public class Book {
    private  String bookName;
    private  String author;//作者
    private  String publisher;//出版社
    private  double price;//价格
    public  void setBookName(String bookNameParam){
        System.out.println("数据穿过来："+bookNameParam);
        bookName = bookNameParam;
    }
        public String getBookName(){
        return  bookName;
        }
        public void setAuthor(String authorParam){
        author = authorParam;
        }
        public String getAuthor(){
        return  author;
        }
        public void setPublisher(String publisherParam){
        publisher = publisherParam;
        }
        public  String getPublisher(){
        return  publisher;
        }
        public void setPrice(double priceParam){
        price = priceParam;
        }

        public double getPrice(){
        return  price;
        }
        public  String getBookInfo(){
        return "书名"+ bookName+"作者"+ author+ "出版社名："+ publisher+ "价格："+price;
        }
}

